#include"udpServer.hpp"
using namespace std;
void Usage(string proc){
    cout<<"Usag : "<<proc<<" local_port"<<endl;
}

int main(int argc,char* argv[]){
    if(argc !=2){
        Usage(argv[0]);
        exit(1);
    }
    udpServer* us = new udpServer(atoi(argv[1]));

    us->initServe();
    us->start();

    return 0;
}
